<template>
    <div class="cmt-container">
        <h3>发表评论</h3>
        <hr>
        <textarea placeholder="请输入评论的内容（不超过120字）" maxlength="120" v-model="msg"></textarea>
        <mt-button type="primary" size="large" @click="postComment">发表评论</mt-button>
        <div class="cmt-list">
            <div class="cmt-item">
                <div class="cmt-title">
                    第1楼&nbsp;&nbsp;&nbsp;&nbsp;用户：匿名用户&nbsp;&nbsp;&nbsp;&nbsp;发表时间：2018-12-04 14:26:30
                </div>
                <div class="cmt-body">
                    库日天，666
                </div>
            </div>
            <div class="cmt-item">
                <div class="cmt-title">
                    第2楼&nbsp;&nbsp;&nbsp;&nbsp;用户：匿名用户&nbsp;&nbsp;&nbsp;&nbsp;发表时间：2018-12-04 14:26:30
                </div>
                <div class="cmt-body">
                    库昊，666
                </div>
            </div>
            <div class="cmt-item">
                <div class="cmt-title">
                    第3楼&nbsp;&nbsp;&nbsp;&nbsp;用户：匿名用户&nbsp;&nbsp;&nbsp;&nbsp;发表时间：2018-12-04 14:26:30
                </div>
                <div class="cmt-body">
                    库日天，666
                </div>
            </div>
        </div>
        <mt-button type="danger" size="large" plain>加载更多</mt-button>
    </div>
</template>

<script>
export default {
    data(){
        return{
            msg: ''
        };
    },
    methods:{
        postComment(){
            
        }
    }
}
</script>

<style lang="scss" scoped>
.cmt-container{
    h3{
        font-size: 18px;
    }
    textarea{
        font-size: 14px;
        height: 85px;
        margin: 0;
    }
    .cmt-list{
        margin: 10px 0;
        .cmt-item{
            font-size: 13px;
            .cmt-title{
                line-height: 35px;
                background-color: #ccc;
            }
            .cmt-body{
                line-height: 35px;
                text-indent: 2em;
            }
        }
    }
}
</style>

